package com.oho.viewmodeltest.life;


import android.life.livedata.MutableLiveData;
import android.life.viewmodel.ViewModel;

import java.util.List;


public class NoteViewModel extends ViewModel {

    public MutableLiveData<List<NoteModel>> notes = new MutableLiveData<>();

    public void fetchNotes() {
        notes.setValue(NoteModel.fetchNotes());
    }

    public void fetchGlobalNotes() {
        notes.setValue(NoteModel.fetchGlobalNotes());
    }
}
